<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('index',['department_id'=>$department_id])}">职位列表</a></li>
			<if condition="auth_check('add')"><li><a href="{:url('add',['department_id' => $department_id])}">添加职位</a></li></if>
		</ul>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="40">ID</th>
					<th align="left">职位名称</th>
					<th align="left">职位介绍</th>
					<th width="160">操作</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="lists" item="vo">
				<tr>
					<td>{$vo.id}</td>
					<td>{$vo.name}</td>
					<td>{$vo.remark}</td>
					<td>
						<if condition="auth_check('edit')"><a href="{:url('edit',['id'=>$vo['id']])}">编辑</a>&nbsp;</if>
						<if condition="auth_check('del')"><a class="js-ajax-dialog-btn" data-msg="是否确定删除？删除后无法恢复！" href="{:url('del',['id'=>$vo['id']])}">删除</a>&nbsp;</if>
						<if condition="auth_check('authority')"><a href="{:url('authority',['id'=>$vo['id']])}">授权</a></if>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>